package com.fjec.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Map;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 011.兑换礼物详细表
 * </p>
 *
 * @author admin
 * @since 2020-12-08
 */
@Data
@TableName(value = "biz_exchange_gift_detail", autoResultMap = true)
public class BizExchangeGiftDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 兑换Id
     */
    @TableField("ExchangeId")
    private Long exchangeId;

    /**
     * 礼物Id
     */
    @TableField("GiftId")
    private Long giftId;

    /**
     * 兑换数量
     */
    @TableField("Num")
    private Integer num;

    /**
     * 单价（分）
     */
    @TableField("Price")
    private Integer price;

    /**
     * 总金额（分）
     */
    @TableField("Amount")
    private Integer amount;

    /**
     * 礼物快照
     */
    @TableField(value = "GiftSnapshot", typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> giftSnapshot;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;


}
